GtkStyleContext: Invalidate contexts with a path
authorVolker Sobek <reklov@live.com>
Tue, 17 Dec 2013 23:04:59 +0000 (00:04 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Dec 2013 23:23:47 +0000 (00:23 +0100)
Fixes a tiny typo in commit f51c9d4154ba1ce4f20f7c4b7f705fe2756cb8ab
which manifested itself in GtkSpinButton's panels being drawn with an
incorrect, not updated state.

This patch took me more hours than you might think! :P

https://bugzilla.gnome.org/show_bug.cgi?id=709491

gtk/gtkstylecontext.c

index 9f35f42c82f6dd18f480b1db1e963cf6d4fcf3d2..21b3d6ead45e9cbd3fcd745609cf8742c9702884 100644 (file)
@@ -3373,7 +3373,7 @@ _gtk_style_context_queue_invalidate (GtkStyleContext *context,
       priv->pending_changes |= change;
       gtk_style_context_set_invalid (context, TRUE);
     }
-  else if (priv->widget_path == NULL)
+  else if (priv->widget_path != NULL)
     {
       G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       gtk_style_context_invalidate (context);